<!DOCTYPE html>
<html>

<body>
    <div id="app"></div>
    <link rel="stylesheet" href="./RunLibs/antd.dark.min.css">
    <script src="./RunLibs/vue.global.prod.js"></script>
    <script src="./RunLibs/vue3-sfc-loader.js"></script>
    <script src="./RunLibs/echarts.min.js"></script>


    <script src="./RunLibs/dayjs/dayjs.min.js"></script>
    <script src="./RunLibs/dayjs/customParseFormat.js"></script>
    <script src="./RunLibs/dayjs/weekday.js"></script>
    <script src="./RunLibs/dayjs/localeData.js"></script>
    <script src="./RunLibs/dayjs/weekOfYear.js"></script>
    <script src="./RunLibs/dayjs/weekYear.js"></script>
    <script src="./RunLibs/dayjs/advancedFormat.js"></script>

    
    <script src="./RunLibs/antd.min.js"></script>
    <script type="module">
        const { loadModule } = window['vue3-sfc-loader'];
        window.process = {
            env: {
                NODE_ENV: 'production'
            }
        };
        /* <!-- */
        const CodeMapping = {
<!--CODE_MAP-->
        }
        /* --> */
        const options = {
            moduleCache: {
                vue: Vue,
                'ant-design-vue': antd,
                dayjs: dayjs,
                echarts: echarts
            },
            getFile: async url => {
                if (url == 'less') {
                    const res = await fetch('./RunLibs/less.min.js');
                    return Promise.resolve(res.text())
                };
                if (url == '@ant-design/icons-vue') {
                    const res = await fetch('./RunLibs/ant-design.icons-vue.es.js');
                    return Promise.resolve(res.text())
                };
                if (url == 'pinia') {
                    const res = await fetch('./RunLibs/pinia.mjs');
                    return Promise.resolve(res.text())
                };
                if (url == 'animejs') {
                    const res = await fetch('./RunLibs/anime.es.js');
                    return Promise.resolve(res.text())
                };
                if (url == 'dayjs/locale/zh-cn') {
                    const res = await fetch('./RunLibs/dayjs.zh-cn.es.js');
                    return Promise.resolve(res.text())
                };
                if (url == 'ant-design-vue/es/locale/zh_CN') {
                    const res = await fetch('./RunLibs/zh_CN.es.js');
                    return Promise.resolve(res.text())
                };
                if (url == 'vue-demi') {
                    const res = await fetch('./RunLibs/vue-demi.em.js');
                    return Promise.resolve(res.text())
                };
                if (url == '@vue/devtools-api') {
                    const res = await fetch('./RunLibs/vue.devtools.api.es.js');
                    return Promise.resolve(res.text())
                };
                return Promise.resolve(CodeMapping[url])
            },
            addStyle(textContent) {
                const style = Object.assign(document.createElement('style'), { textContent });
                const ref = document.head.getElementsByTagName('style')[0] || null;
                document.head.insertBefore(style, ref);
            },
        }
        loadModule('/main.js', options);
    </script>
</body>

</html>